<?php
class ArticleViewModel extends ViewModel{
	/***
	 * idint(10) unsigned NOT NULL
pidint(11) NOT NULL
cpathvarchar(100) NOT NULL
titlevarchar(100) NOT NULL
anchorvarchar(50) NOT NULL
shownumint(11) NOT NULL
commentnumint(10) unsigned NOT NULL
discriptiontext NOT NULL
attachmentvarchar(70) NOT NULL
tagvarchar(50) NOT NULL
copyfromvarchar(100) NOT NULL
contenttext NOT NULL
createdint(11) NOT NULL
updatedint(11) NOT NULL

	 */
	
	protected $viewModel = true;
	protected $masterModel = 'Article';
	protected $viewFields = array (
		'Article' => array ('id','pid','cpath','title','anchor','shownum','commentnum','discription','attachment','tag','content','created','updated','_type' => 'LEFT'),
		'Cat' => array ('cat_name','path','_on' => 'Article.pid = Cat.id'),
		//TODO: 此处 需确认修改// 保存发送用户或保存发送ID
		
	);


}